//
//  ReplayModel.m
//  xpkc
//
//  Created by 胡志飞 on 15/12/1.
//  Copyright © 2015年 TopSage. All rights reserved.
//

#import "ReplayModel.h"

@implementation ReplayModel

-(instancetype)initWithDict:(NSDictionary *) dict{
    
    if (self = [super init]) {
        
        self.replayId = [NSString stringWithFormat:@"%@",dict[@"id"]];//[dict[@"id"] stringValue];
        self.askid = [NSString stringWithFormat:@"%@",dict[@"askid"]];// [dict[@"askid"] stringValue];
        self.uid = [NSString stringWithFormat:@"%@",dict[@"uid"]];//[dict[@"uid"] stringValue];
        self.username = dict[@"username"];
        self.content =  dict[@"content"];
        self.reply_time = [NSString stringWithFormat:@"%@",dict[@"reply_time"]];// [dict[@"reply_time"] stringValue];
        self.uavtar = dict[@"uavtar"];
        self.rate = [NSString stringWithFormat:@"%@",dict[@"rate"]];// [dict[@"rate"] stringValue];
        self.replytime = dict[@"replytime"];
        
    }
    
    return self;
    
}

+(ReplayModel *)replayModelWithDict:(NSDictionary *)dict{
    
    return [[ReplayModel alloc] initWithDict:dict];
    
}

@end
